package src.first;

public class Emperor {

    private static Emperor emperor = null;
    private Emperor(){

    }

    public static Emperor getInstance(){
        if(emperor == null){
            emperor = new Emperor();
        }
        return emperor;
    }

    public void getName(){
        System.out.println("我是皇帝：明日科技");
    }
}
